define(function(){
	function glass(){
		$(function(){
			$(".part_img").mouseover(function(){
			$(".part_img_shade").css("display","block");
			$(".part_big_img").css("display","block");
		})
		$(".part_img").mouseout(function(){
			$(".part_img_shade").hide();
			$(".part_big_img").hide();
		})
		$(".part_img").mousemove(function(e){
			var left = e.pageX - $(".part_img").offset().left - $(".part_img_shade").width()/2;
			var top = e.pageY - $(".part_img").offset().top - $(".part_img_shade").height()/2; 
			if(left<0){
				left = 0
			}else if(left >$(".part_img").width()-$(".part_img_shade").width()/2){
				left =$(".part_img").width()-$(".part_img_shade").width()/2;
			}
			if(top<0){
				top = 0
			}else if(top > $(".part_img").height()-$(".part_img_shade").width()){
				top = $(".part_img").height()-$(".part_img_shade").width()
			}
			$(".part_img_shade").css("left",left);
			$(".part_img_shade").css("top",top);
			$(".part_big_img img").css("left",-3*left);
			$(".part_big_img img").css("top",-3*top);
			$(".part_img_01").hover(function(){
				$(".part_img_a").attr("src","img/part_01.jpg");
				$(".part_img_b").attr("src","img/part_01.jpg");
			})
			$(".part_img_02").hover(function(){
				$(".part_img_a").attr("src","img/part_02.jpg");
				$(".part_img_b").attr("src","img/part_02.jpg");
			})
		})
		})
	}
return {
	glass:glass
}
})
